/**玩家属性+AI身上的编号 */
class player extends eui.Component implements IPool {
	public constructor() {
		super()
		this.dateinit();
	}

	public m_player: eui.Image;

	public id: number;

	public name: string;

	public bg_id: string;
	/**AI身上的编号*/
	public skinvo: number;
	/**刀*/
	public knife_num: number;
	/**周期循环半径范围*/
	public circleRadius: number;
	/**半径范围*/
	public radius: number;
	/**吃球半径*/
	public eatRadius: number;
	/** 离圆心的距离 */
	public dis_from_circle: number;
	/**转弯速度*/
	public turn_speed: number;
	/**移动速度*/
	public move_speed: number;
	/**方向*/
	public direction: number;
	/**右摇杆的方向 */
	public Rightdirection: number;
	/**是否防御*/
	public isdefence: boolean;

	public dateinit() {
		this.viewinit()
	}

	public viewinit() {
		let myPlayer = RES.getRes("game_json.yuan_1");
		console.log(64464464646446464464);
		this.m_player = new eui.Image();
		this.m_player.texture = myPlayer;
		this.addChild(this.m_player);
		this.m_player.scaleX=this.m_player.scaleY=1;
		this.m_player.anchorOffsetX=this.m_player.anchorOffsetY=this.m_player.width/2;
	}

	public reset() {
		this.skinvo == null
	};
	public destroy() {
	};
	public clear() {
		this.skinvo = null;
	};
} 